<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()

+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>BugFree</title>
<link href="css/foreground.css" rel="stylesheet" type="text/css" />
<script language="javascript">
     function getimgcode()
         {
              var randomnum = Math.random();
              var getimagecode = document.getElementById("getcode");
              getimagecode.src = "Pro_code.jsp?" + randomnum;
         }
</script>

</head>
<BODY id=css-zen-garden>
<DIV id=container>
<DIV id=intro>
<DIV id=quickSummary>
</DIV>
<DIV id=edituser>
<form  id="LoginForm" name="LoginForm" method="post" action="login">
<table width="350px" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30">用户名</td>
    <td><input name="username" type="text" class="selectlist1" id="username" /></td>
  </tr>
  <tr>
    <td height="30">密码</td>
    <td height="30">
      <input name="password" type="password" class="selectlist1" id="password" />   

</td>
  </tr>
  <tr>
    <td height="30">验证码</td>
    <td height="30">
      <input type=text name="rand"  maxlength=4  value="" class="selectlist1"/>
     <img src="Pro_code.jsp" id="pic" /><a href="javascript:change()">换一张</a></td>
<script language="javascript" type="text/javascript">
 function change()
 {
  var picID=document.getElementById("pic");
  picID.src=picID.src+'?';
 }
</script>
  </tr>
  <tr>
    <td colspan="2" align="center">
      <input type="submit" name="button" id="button" value="登陆" />    </td>
    </tr>
</table>
    </form>
</DIV>
</DIV>
<DIV id=supportingText></DIV>
<DIV id=load></DIV>
</DIV></BODY>
</html>
